package situ.autoweter.entity;

import com.alibaba.fastjson.JSONObject;
import java.util.*;
import java.time.*;
/**
 * SY_MeterType实体类
 * 
 * @author 
 *
 */
public class SyMetertype {
	/***/
	private Object id; 
	/***/
	private String MeterTypeName; 
	/***/
	private Integer Aperture; 
	/***/
	private Integer MavValue; 
	/***/
	private Integer MinValue; 
	/***/
	private Integer Life; 
	/***/
	private String Remark; 
	/***/
	private Integer Disabled; 
	/**
	 * 实例化
	 */
	public SyMetertype() {
		super();
	}
	/**
	 * 实例化
	 * 
	 * @param obj
	 */
	public SyMetertype(JSONObject obj) {
		this();
		this.setId(obj.get("id"));
		if (obj.get("MeterTypeName") instanceof String) {
			this.setMeterTypeName((String) obj.get("MeterTypeName"));
		}
		if (obj.get("Aperture") instanceof Number) {
			this.setAperture(((Number) obj.get("Aperture")).intValue());
		}
		if (obj.get("MavValue") instanceof Number) {
			this.setMavValue(((Number) obj.get("MavValue")).intValue());
		}
		if (obj.get("MinValue") instanceof Number) {
			this.setMinValue(((Number) obj.get("MinValue")).intValue());
		}
		if (obj.get("Life") instanceof Number) {
			this.setLife(((Number) obj.get("Life")).intValue());
		}
		if (obj.get("Remark") instanceof String) {
			this.setRemark((String) obj.get("Remark"));
		}
		if (obj.get("Disabled") instanceof Number) {
			this.setDisabled(((Number) obj.get("Disabled")).intValue());
		}
	}
	
	/**
	 * 将当前对象转换为JsonObject
	 * 
	 * @return
	 */
	public JSONObject toJson() {
		JSONObject result = new JSONObject();
		if (this.getId() != null) {
			result.put("id",this.getId());
		}
		if (this.getMeterTypeName() != null) {
			result.put("MeterTypeName",this.getMeterTypeName());
		}
		if (this.getAperture() != null) {
			result.put("Aperture",this.getAperture());
		}
		if (this.getMavValue() != null) {
			result.put("MavValue",this.getMavValue());
		}
		if (this.getMinValue() != null) {
			result.put("MinValue",this.getMinValue());
		}
		if (this.getLife() != null) {
			result.put("Life",this.getLife());
		}
		if (this.getRemark() != null) {
			result.put("Remark",this.getRemark());
		}
		if (this.getDisabled() != null) {
			result.put("Disabled",this.getDisabled());
		}
		return result;
	}
	
	
	/**
	 * 获取id
	 * 
	 * @return
	 */
	public Object getId() {
		return id;
	}

	/**
	 * 设置id
	 * 
	 * @param id
	 */
	public void setId(Object id) {
		this.id = id;
	}
	
	/**
	 * 获取MeterTypeName
	 * 
	 * @return
	 */
	public String getMeterTypeName() {
		return MeterTypeName;
	}

	/**
	 * 设置MeterTypeName
	 * 
	 * @param MeterTypeName
	 */
	public void setMeterTypeName(String MeterTypeName) {
		this.MeterTypeName = MeterTypeName;
	}
	
	/**
	 * 获取Aperture
	 * 
	 * @return
	 */
	public Integer getAperture() {
		return Aperture;
	}

	/**
	 * 设置Aperture
	 * 
	 * @param Aperture
	 */
	public void setAperture(Integer Aperture) {
		this.Aperture = Aperture;
	}
	
	/**
	 * 获取MavValue
	 * 
	 * @return
	 */
	public Integer getMavValue() {
		return MavValue;
	}

	/**
	 * 设置MavValue
	 * 
	 * @param MavValue
	 */
	public void setMavValue(Integer MavValue) {
		this.MavValue = MavValue;
	}
	
	/**
	 * 获取MinValue
	 * 
	 * @return
	 */
	public Integer getMinValue() {
		return MinValue;
	}

	/**
	 * 设置MinValue
	 * 
	 * @param MinValue
	 */
	public void setMinValue(Integer MinValue) {
		this.MinValue = MinValue;
	}
	
	/**
	 * 获取Life
	 * 
	 * @return
	 */
	public Integer getLife() {
		return Life;
	}

	/**
	 * 设置Life
	 * 
	 * @param Life
	 */
	public void setLife(Integer Life) {
		this.Life = Life;
	}
	
	/**
	 * 获取Remark
	 * 
	 * @return
	 */
	public String getRemark() {
		return Remark;
	}

	/**
	 * 设置Remark
	 * 
	 * @param Remark
	 */
	public void setRemark(String Remark) {
		this.Remark = Remark;
	}
	
	/**
	 * 获取Disabled
	 * 
	 * @return
	 */
	public Integer getDisabled() {
		return Disabled;
	}

	/**
	 * 设置Disabled
	 * 
	 * @param Disabled
	 */
	public void setDisabled(Integer Disabled) {
		this.Disabled = Disabled;
	}

	@Override
	public String toString() {
		return "SyMetertype [id=" + id + " , MeterTypeName=" + MeterTypeName + " , Aperture=" + Aperture + " , MavValue=" + MavValue + " , MinValue=" + MinValue + " , Life=" + Life + " , Remark=" + Remark + " , Disabled=" + Disabled + "  ]";
	
	}
	
	
}
